package com.qingke.easyjava.beanfactory;

public class BeanFactoryDemo {
	public static void main(String[] args) {
		MyBeanFactory factory = new MyBeanFactory();
		
		MyBean bean = factory.getBean("helloBean",MyBean.class);
		bean.hello();
		
		MyBean bean2 = factory.getBean("helloBean", MyBean.class);
		bean.hello();
		
		System.out.println("bean1 equals bean2 :"+(bean.equals(bean2)));
	}
}
